package standard;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.event.MouseEvent;
import java.util.Queue;

import util.ResourceManager;
import core.Entity;
import core.GameState;
import core.InputManager;

public class MatchMakingState implements GameState {

	private boolean done = false;

	@Override
	public String getName() {
		return "MatchMaking";
	}

	@Override
	public void handleNewEntity(Entity e) {
	}

	@Override
	public void loadResources(ResourceManager arg0) {
	}

	@Override
	public void render(Graphics2D g, int screenWidth, int screenHeight) {
		g.setColor(Color.yellow);
		g.fillRect(0, 0, screenWidth, screenHeight);
	}

	@Override
	public void start(InputManager arg0) {
	}

	@Override
	public void stop() {
	}

	@Override
	public void update(int arg0) {
	}

	public void matchMade() {
		done = true;
	}

	@Override
	public String getNextState() {
		if (done)
			return "MainGame";
		return null;
	}

	@Override
	public void handle(Queue<MouseEvent> mouseEvents) {
		// Do Nothing
	}

}
